From 45a5151f940399a0d53109b9ae36e6eed27c21f7 Mon Sep 17 00:00:00 2001 From: Nelson Benitez Leon Date: Tue, 3 Apr 2012 17:33:15 +0200 Subject: [PATCH] gtktreeview: don't handle extra mouse buttons Don't handle mouse button events greater than 5 so they can bubble up to be used by the application. This was causing nautilus list view to not go forward and backwards when pressing the extra mouse buttons designated for that. Fixes bug 673441 Signed-off-by: Nelson Benitez Leon --- gtk/gtktreeview.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index b9b90ab0eb..c3ec3d6e8a 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -2876,6 +2876,10 @@ gtk_tree_view_button_press (GtkWidget *widget, "horizontal-separator", &horizontal_separator, NULL); + /* Don't handle extra mouse buttons events, let them bubble up */ + if (event->button > 5) + return FALSE; + /* Because grab_focus can cause reentrancy, we delay grab_focus until after * we're done handling the button press. */ -- 2.30.2